import request from "@/utils/request";



// 密码登录
export function passwordLogin(param) { 
    return request({
        url: "/login/employee/password",
        method: "post",
        data:param
    });
}
//验证码登录
export function captchaLogin(param) { 
    return request({
        url: "/login/employee/captcha",
        method: "post",
        data:param
    });
}
//发送验证码
export function sendCaptcha(param) { 
    return request({
        url: "/register/employee/sendCaptcha",
        method: "post",
        data: param, // 使用 qs 序列化,
        headers: { "Content-Type": "application/x-www-form-urlencoded" }
    });
}

//注册
export function register(param) { 
    return request({
        url: "/register/employee",
        method: "post",
        data: param
    });
}